﻿package com.eitb.programas.diputacion.rutas {
	import flash.net.*;
	public class Rutas {
		public function getXml(id:String, idioma:String):URLRequest {
			var request:URLRequest = new URLRequest("xml/".concat(id).concat("_").concat(idioma).concat(".xml"));
			var variables:URLVariables = new URLVariables();
			variables.rnd = Math.random();
			request.data = variables;
			request.method = URLRequestMethod.POST;
			request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
			return request;
		}
		public function getImagen(id:String):URLRequest {
			var request:URLRequest = new URLRequest(id);
			var variables:URLVariables = new URLVariables();
			variables.rnd = Math.random();
			request.data = variables;
			request.method = URLRequestMethod.POST;
			request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
			return request;
		}
	}
}